using MicroMsg.Common.Utils;
using MicroMsg.Manager;
using MicroMsg.Resource.@string;
using MicroMsg.UI.UserContrl;
using MicroMsg.UI.Util;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.Page
{
	public class LbsGuidPage : BasePage
	{
		internal Grid LayoutRoot;
		internal panelTitle2Line panelTitle;
		internal StackPanel ContentPanel;
		internal Button btnStart;
		private bool _contentLoaded;
		public LbsGuidPage()
		{
			this.InitializeComponent();
			base.add_Loaded(new RoutedEventHandler(this.LbsGuidPage_Loaded));
		}
		private void LbsGuidPage_Loaded(object sender, RoutedEventArgs e)
		{
			Log.smethod_5(base.GetType().ToString(), "LbsGuidPage_Loaded");
		}
		private void btnStart_Click(object sender, RoutedEventArgs e)
		{
			ConfigMgr.setBool("bNotFirstInLbs", true);
			if (AccountMgr.IsAcountInfoCompleted())
			{
				Log.smethod_5(base.GetType().ToString(), "Account info perfect, direct in Lbs list");
				base.GoToPage("/Source/Plugin/Lbs/UI/LbsPeopleList.xaml", new object[]
				{
					LbsPeopleListComeFrom.COME_FROM_GUIDE_PAGE
				}, true);
				return;
			}
			Log.smethod_5(base.GetType().ToString(), "Account info not perfect, goto Lbs LbsInputUserInfo");
			base.GoToPage("/Source/Plugin/Lbs/UI/LbsInputUserInfo.xaml", new object[]
			{
				strings.COM_SeeAround,
				"/Source/Plugin/Lbs/UI/LbsPeopleList.xaml"
			}, true);
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/Plugin/Lbs/UI/LbsGuidPage.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.panelTitle = (panelTitle2Line)base.FindName("panelTitle");
			this.ContentPanel = (StackPanel)base.FindName("ContentPanel");
			this.btnStart = (Button)base.FindName("btnStart");
		}
	}
}
